package org.jeecg.modules.wangyue.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.wangyue.entity.ServiceItems;
import org.jeecg.modules.wangyue.entity.UserCollect;
import org.jeecg.modules.wangyue.mapper.UserCollectMapper;
import org.jeecg.modules.wangyue.service.IUserCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 用户收藏表
 * @Author: jeecg-boot
 * @Date:   2023-06-30
 * @Version: V1.0
 */
@Service
public class UserCollectServiceImpl extends ServiceImpl<UserCollectMapper, UserCollect> implements IUserCollectService {

    @Autowired
    private UserCollectMapper userCollectMapper;

    @Override
    public IPage<ServiceItems> getServiceItemsPage(Page<ServiceItems> page, String userId, String userType) {
        return userCollectMapper.queryServiceItemsPage(page, userId, userType);
    }

}
